<script>$("#laporgenset").tabs({});</script>
<?php if($this->suhuSilinder != null) { 

    $this->tabPane("laporgenset",$this->pemeriksaanUmum,array('title' => 'Pemeriksaan Umum'));
    $this->tabPane("laporgenset",$this->suhuSilinder,array('title' => 'Suhu Keluaran'));
    $this->tabPane("laporgenset",$this->keadaanGenset,array('title' => 'Keadaan Genset'));
?>
<div id="laporangenset">
<?= $this->tanggal; ?>
<br /><hr />
<div id="gensetSummary">
    <?= $this->gensetSummary; ?>
</div>
<?= $this->tabContainer("laporgenset", array()); ?>
</div>

<?php } else if($this->daftarAktivitas){ 
    echo '<div id="laporangenset">';
    echo $this->tanggal.'<br /><hr />';
    
    $daftarAktivitas = $this->daftarAktivitas;  
    
    echo '<table id="daftarAktivitas">';
    echo '<thead><tr><td>No</td><td>Serial Number</td><td>Waktu Pemeriksaan</td><td>Pegawai Pemeriksaan</td></tr></thead>';
    echo '<tbody>';
    $i = 0;
    foreach ($daftarAktivitas as $daftarAktivitas)
    {
        $no = $i+1;
        echo '<tr id="'.$daftarAktivitas['id_aktivitas_harian'].'"><td>'.$no.'</td><td>'.$daftarAktivitas['serial_number_genset'].'</td><td>'.$daftarAktivitas['waktu_pemeriksaan'].'</td><td>'.$this->daftarPegawai[$i]['nama_pegawai'].'</td></tr>'; 
        $i++;
        
    }
    echo '</tbody>';
    echo '</table>';
    echo '</div>';
    echo $this->headScript()->offsetSetFile(100, $this->baseUrl().'/content/js/eventCalendar.js');
}
?>